package com.ku.log.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author: GZQ
 * @create: 2020/08/09
 * @description: 操作日志记录实体，数据库对应表 t_operation_log
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysLog {
    /**日志主键*/
    private Long id;
    /**日志标题*/
    private String title;
    /**请求URI*/
    private String uri;
    /**请求方式*/
    private String method;
    /**请求参数*/
    private String params;
    /**操作主机IP*/
    private String remoteIp;
    /**操作人*/
    private Operator operator;
    /**操作类型*/
    private String operateType;
    /**操作描述*/
    private String operateDesc;
    /**操作时间*/
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date operateTime;

    /**操作结果 成功/失败/异常*/
    private String result;

    /**执行异常*/
    private String operateException;

    /**操作项*/
    private String item;

    /**操作系统模块*/
    private String module;
}
